/* 按需注册UI组件的插件 */
import {
    Aside,
    Container,
    Header,
    Main,
    Menu,
    menuItem,
    menuItemGroup,
    radioButton,
    radioGroup,
    Submenu,
    Row,
    Button,
    DatePicker,
    Avatar,
    Dropdown,
    DropdownMenu,
    DropdownItem,
    Card,
    Col,
    Table,
    TableColumn,
    Input,
    Pagination,
    Popover,
    Form,
    FormItem,
    Breadcrumb,
    BreadcrumbItem,
    Select,
    Option,
    Upload,
    Dialog,
    Carousel,
    carouselItem,
    Tabs,
    tabPane,
    pageHeader,
    inputNumber,
} from "element-ui";
//引入MessageBox 弹框
import {MessageBox} from "element-ui";
import {Message} from "element-ui";

export default {
    install(Vue){
//注册组件
        Vue.component(inputNumber.name, inputNumber)
        Vue.component(pageHeader.name, pageHeader)
        Vue.component(tabPane.name, tabPane)
        Vue.component(Container.name, Container)
        Vue.component(Aside.name, Aside)
        Vue.component(Header.name, Header)
        Vue.component(Main.name, Main)
        Vue.component(Menu.name, Menu)
        Vue.component(Submenu.name, Submenu)
        Vue.component(menuItemGroup.name, menuItemGroup)
        Vue.component(menuItem.name, menuItem)
        Vue.component(radioGroup.name, radioGroup)
        Vue.component(radioButton.name, radioButton)
        Vue.component(Row.name, Row)
        Vue.component(Button.name, Button)
        Vue.component(DatePicker.name, DatePicker)
        Vue.component(Avatar.name, Avatar)
        Vue.component(Dropdown.name, Dropdown)
        Vue.component(DropdownMenu.name, DropdownMenu)
        Vue.component(DropdownItem.name, DropdownItem)
        Vue.component(Card.name, Card)
        Vue.component(Col.name, Col)
        Vue.component(Table.name, Table)
        Vue.component(TableColumn.name, TableColumn)
        Vue.component(Input.name, Input)
        Vue.component(Pagination.name, Pagination)
        Vue.component(Popover.name, Popover)
        Vue.component(Form.name, Form)
        Vue.component(FormItem.name, FormItem)
        Vue.component(Breadcrumb.name, Breadcrumb)
        Vue.component(BreadcrumbItem.name, BreadcrumbItem)
        Vue.component(Select.name, Select)
        Vue.component(Option.name, Option)
        Vue.component(Upload.name, Upload)
        Vue.component(Dialog.name, Dialog)
        Vue.component(Carousel.name, Carousel)
        Vue.component(carouselItem.name, carouselItem)
        Vue.component(Tabs.name, Tabs)


        //引入MessageBox 弹框

        Vue.prototype.$confirm = MessageBox.confirm;
        Vue.prototype.$message = Message
    }
}